import log from "./logger";
import weighter from "./weight";
import metric from "./metric";
import settings from "./settings";

async function start() {
    settings.deviceName = "test2";
    settings.comPath = "com1"
    settings.combaudRate = 9600
    // 开启重量端口
    weighter.init();
    // 开启告警检测
    metric.init(60 * 1000);
    log.info("启动完成")
}

start()